package com.base.cn.platform.os.service.manage.log;

import com.base.cn.platform.os.service.FeignAuthConfig;
import com.base.cn.platform.os.service.manage.BaseService;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * 文 件 名:OpLogService
 * 创 建 人:hackeridear
 * 创建日期:2018-12-05
 * 描   述:OpLogService
 * 修 改 人:
 * 修改日期:
 * 版 本 号:v 1.0.0
 */
@FeignClient(name = BaseService.appName,configuration = FeignAuthConfig.class)
public interface OpLogService extends BaseService {
    /**
     * 保存操作日志
     * @param opLogMap 操作日志
     * @return Map<String,Object>
     */
    @RequestMapping(contextPath + "/log/saveOpLog")
    Map<String,Object> saveOpLog(@RequestBody Map<String, Object> opLogMap);



    /**
     * 分页查询操作日志
     * @param condition
     * @param currentPage
     * @param pageSize
     * @return
     */
    @RequestMapping(contextPath+"/log/findOpLogListPage")
    Map<String,Object> findOpLogListPage(@RequestBody Map<String, Object> condition, @RequestParam(value = "currentPage", required = false, defaultValue = "1") int currentPage,
                                         @RequestParam(value = "pageSize", required = false, defaultValue = "10") int pageSize);
}
